html,body{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 14px;
}

ul,ol{
    list-style: none;
    padding:0;
}

.game{
    width: 100%;
    height: 100%;
}
.bg1{
    background: url('./bgimg/bg_1.jpg') no-repeat;
    background-size: cover;
}
.bg2{
    background: url('./bgimg/bg_2.jpg') no-repeat;
    background-size: cover;
}
.bg3{
    background: url('./bgimg/bg_3.jpg') no-repeat;
    background-size: cover;
}
.bg4{
    background: url('./bgimg/bg_4.jpg') no-repeat;
    background-size: cover;
}

.btn{
    width:140px;
    line-height: 28px;
    border: 1px solid #999;
    font-size: 1.4rem;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 14px;
    display: block;
    background: none;
    color: #fff;
}

.ui-index{
    width: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 1;
}

.ui-index .title{
    text-align: center;
    font-size: 3.5rem;
    text-shadow: 2px 2px 2px #000;
}

.ui-index .btns-group .btn{
    margin: 6px auto;
}

.ui-panel{
    width: 80%;
    padding: 14px;
    border: 3px solid #fff;
    background: #070808;
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translate(0, -50%);
    box-sizing: border-box;
    text-align: center;
    border-radius: 8px;
    z-index: 99;    
}

.ui-panel h2{
    margin: 0;
    text-align: center;
    font-size: 2rem;
}

.confirm-btn{
    background: #000;
    border: 0;
    color: #fff;
    font-size: 1.3rem;
    margin: 0 auto;
    border: 2px solid #fff;
    border-radius: 6px;
}

.setting{
    margin: 10px;
    text-align: center;
    font-size: 1.2rem;
}

.setting select{
    background: #fff;
    border-radius: 0;
    margin-left: 10px;
    width: 100px;
}

.ui-rule, .ui-setting{
    display: none;
}

.ui-result{
    display: none;
    z-index: 1;
}

.ui-score{
    font-size: 1.4rem;
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 100;
}

/* 游戏画板 canvas */
#game{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}

